package sctu.edu.java.year2016.team07.nieying.day20160524.chapter7_2;

/**
 * Created by Administrator on 2016/5/24 0024.
 */

/**
 * 尝试编写一个矩形类，将长与宽作为矩形类的属性，在构造方法中将长，宽初始化，定义一个成员方法求矩形
 */
public class Text_2 {
    public static void main(String[] args){
        Area area=new Area(2.1,3.2);
        System.out.println("长: "+area.getLength());
        System.out.println("宽: "+area.getWide());
        System.out.println("面积: "+area.getLength()*area.getWide());
    }

}
